# 提供给其它插件项目引用的共享资源(如果其它插件想通过框架构建引用的话）
if(FRAMEWORK_WANT_INCLUDE)
    message("-- [PLUGIN EXPORT]: FRAMEWORK_WANT_INCLUDE?")
    set(FRAMEWORK_INCLUDE_EXPORTS      # 共享的引用目录
        ${CMAKE_CURRENT_LIST_DIR}/include
    )
    set(FRAMEWORK_SOURCES_EXPORTS      # 共享的资源文件
        ${CMAKE_CURRENT_LIST_DIR}/src/*
        ${CMAKE_CURRENT_LIST_DIR}/include/*
    )

    # gtk3_or_gtk4
    if(feature_gtk3_or_gtk4)
        spark_find_library(GTK3 gtk+-3.0)
        spark_find_library(GTK4 gtk4)
        if(GTK3_FOUND)
            set(feature_gtk3 ON)
        elseif(GTK4_FOUND)
            set(feature_gtk4 ON)
        endif(GTK3_FOUND)
    endif(feature_gtk3_or_gtk4)

    # gtk3
    if(feature_gtk3)
        spark_find_library(GTK3 gtk+-3.0)
        if(GTK3_FOUND)
            target_link_GTK3(${FRAMEWORK_PLUGIN})
        else()
            message(SEND_ERROR "[GTK3]: Not FOUND.(没有找到 gtk3)")
        endif(GTK3_FOUND)
    endif(feature_gtk3)
    
    # gtk4
    if(feature_gtk4)
        spark_find_library(GTK4 gtk4)
        if(GTK4_FOUND)
            target_link_GTK4(${FRAMEWORK_PLUGIN})
        else()
            message(SEND_ERROR "[GTK4]: Not FOUND.(没有找到 gtk4)")
        endif(GTK4_FOUND)
    endif(feature_gtk4)

    set(FRAMEWORK_WITHGIT_EXPORTS      # 共享的引用构建资源
        # 1. 引用了公共存储库
        # https://gitee.com/ndd-community/framework-plugin-component-library

        # 2. 引用了该项目提供的 - 间接引用 QFtp
        # https://gitee.com/spark-framework-libs/QFtpExample
        # https://gitee.com/spark-framework-libs/QFtp

        # 3. 引用了该项目提供的 Drag/Drop Eaters 与 EventUtil
        # https://gitee.com/zinface/notepad--plugin.image-view

        
        # 引用了一个示例库
        https://gitee.com/zinface/c.gtk-examples
    )

    # 特殊构建 - 为引用资源的目标配置预期所需依赖的构建
        # FRAMEWORK_PLUGIN 引用本资源的框架目标变量
    # find_package(Qt5Svg)
    # target_link_libraries(${FRAMEWORK_PLUGIN} Qt5::Svg)

    return()
endif(FRAMEWORK_WANT_INCLUDE)